package com.tangyuan.feignapis.headlines;

import com.tangyuan.model.HeadlinesThump;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name ="service-headlines",contextId = "feignApi-headlinesThump")
public interface IHeadlinesThumpFeignClient {

    @GetMapping("/feignApi/headlinesThump/getHeadlinesThumpOne/{userId}/{articleId}")
    HeadlinesThump getHeadlinesThumpOne(@PathVariable("userId") Long userId, @PathVariable("articleId") Integer articleId);
}
